home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / curses.man < prev    next >
Encoding:
Text File  |  1989-02-24  |  5.7 KB  |  133 lines

  1.  
  2.  
  3.  
  4. CURSES                C Library Procedures                 CURSES
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      curses - screen functions with ``optimal'' cursor motion
  10.  
  11. SSYYNNOOPPSSIISS
  12.      cccc [ flags ] files --llccuurrsseess --lltteerrmmccaapp [ libraries ]
  13.  
  14. DDEESSCCRRIIPPTTIIOONN
  15.      These routines give the user a method of updating screens
  16.      with reasonable optimization.  They keep an image of the
  17.      current screen, and the user sets up an image of a new one.
  18.      Then the _r_e_f_r_e_s_h() tells the routines to make the current
  19.      screen look like the new one.  In order to initialize the
  20.      routines, the routine _i_n_i_t_s_c_r() must be called before any of
  21.      the other routines that deal with windows and screens are
  22.      used.  The routine _e_n_d_w_i_n() should be called before exiting.
  23.  
  24. SSEEEE AALLSSOO
  25.      _S_c_r_e_e_n _U_p_d_a_t_i_n_g _a_n_d _C_u_r_s_o_r _M_o_v_e_m_e_n_t _O_p_t_i_m_i_z_a_t_i_o_n: _A _L_i_b_r_a_r_y
  26.      _P_a_c_k_a_g_e, Ken Arnold,
  27.      ioctl(2), getenv(3), tty(4), termcap(5)
  28.  
  29. AAUUTTHHOORR
  30.      Ken Arnold
  31.  
  32. FFUUNNCCTTIIOONNSS
  33.      addch(ch)                     add a character to _s_t_d_s_c_r
  34.      addstr(str)                   add a string to _s_t_d_s_c_r
  35.      box(win,vert,hor)             draw a box around a window
  36.      cbreak()                      set cbreak mode
  37.      clear()                       clear _s_t_d_s_c_r
  38.      clearok(scr,boolf)            set clear flag for _s_c_r
  39.      clrtobot()                    clear to bottom on _s_t_d_s_c_r
  40.      clrtoeol()                    clear to end of line on _s_t_d_s_c_r
  41.      delch()                       delete a character
  42.      deleteln()                    delete a line
  43.      delwin(win)                   delete _w_i_n
  44.      echo()                        set echo mode
  45.      endwin()                      end window modes
  46.      erase()                       erase _s_t_d_s_c_r
  47.      flusok(win,boolf)             set flush-on-refresh flag for _w_i_n
  48.      getch()                       get a char through _s_t_d_s_c_r
  49.      getcap(name)                  get terminal capability _n_a_m_e
  50.      getstr(str)                   get a string through _s_t_d_s_c_r
  51.      gettmode()                    get tty modes
  52.      getyx(win,y,x)                get (y,x) co-ordinates
  53.      inch()                        get char at current (y,x) co-ordinates
  54.      initscr()                     initialize screens
  55.      insch(c)                      insert a char
  56.      insertln()                    insert a line
  57.      leaveok(win,boolf)            set leave flag for _w_i_n
  58.      longname(termbuf,name)        get long name from _t_e_r_m_b_u_f
  59.      move(y,x)                     move to (y,x) on _s_t_d_s_c_r
  60.  
  61.  
  62.  
  63. Sprite v1.0              April 23, 1986                         1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. CURSES                C Library Procedures                 CURSES
  71.  
  72.  
  73.  
  74.      mvcur(lasty,lastx,newy,newx)  actually move cursor
  75.      newwin(lines,cols,begin_y,begin_x) create a new window
  76.      nl()                          set newline mapping
  77.      nocbreak()                    unset cbreak mode
  78.      noecho()                      unset echo mode
  79.      nonl()                        unset newline mapping
  80.      noraw()                       unset raw mode
  81.      overlay(win1,win2)            overlay win1 on win2
  82.      overwrite(win1,win2)          overwrite win1 on top of win2
  83.      printw(fmt,arg1,arg2,...)     printf on _s_t_d_s_c_r
  84.      raw()                         set raw mode
  85.      refresh()                     make current screen look like _s_t_d_s_c_r
  86.      resetty()                     reset tty flags to stored value
  87.      savetty()                     stored current tty flags
  88.      scanw(fmt,arg1,arg2,...)      scanf through _s_t_d_s_c_r
  89.      scroll(win)                   scroll _w_i_n one line
  90.      scrollok(win,boolf)           set scroll flag
  91.      setterm(name)                 set term variables for name
  92.      standend()                    end standout mode
  93.      standout()                    start standout mode
  94.      subwin(win,lines,cols,begin_y,begin_x) create a subwindow
  95.      touchline(win,y,sx,ex)        mark line _y _s_x through _s_y as changed
  96.      touchoverlap(win1,win2)       mark overlap of _w_i_n_1 on _w_i_n_2 as changed
  97.      touchwin(win)                 "change" all of _w_i_n
  98.      unctrl(ch)                    printable version of _c_h
  99.      waddch(win,ch)                add char to _w_i_n
  100.      waddstr(win,str)              add string to _w_i_n
  101.      wclear(win)                   clear _w_i_n
  102.      wclrtobot(win)                clear to bottom of _w_i_n
  103.      wclrtoeol(win)                clear to end of line on _w_i_n
  104.      wdelch(win,c)                 delete char from _w_i_n
  105.      wdeleteln(win)                delete line from _w_i_n
  106.      werase(win)                   erase _w_i_n
  107.      wgetch(win)                   get a char through _w_i_n
  108.      wgetstr(win,str)              get a string through _w_i_n
  109.      winch(win)                    get char at current (y,x) in _w_i_n
  110.      winsch(win,c)                 insert char into _w_i_n
  111.      winsertln(win)                insert line into _w_i_n
  112.      wmove(win,y,x)                set current (y,x) co-ordinates on _w_i_n
  113.      wprintw(win,fmt,arg1,arg2,...) printf on _w_i_n
  114.      wrefresh(win)                 make screen look like _w_i_n
  115.      wscanw(win,fmt,arg1,arg2,...) scanf through _w_i_n
  116.      wstandend(win)                end standout mode on _w_i_n
  117.      wstandout(win)                start standout mode on _w_i_n
  118.  
  119. BBUUGGSS
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126. Sprite v1.0              April 23, 1986                         2
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.